<?php

	function getCustomerOptions(){
		$sql = "Select * FROM customers WHERE isActive=1";
		$html = '<select id="eNumb" name="eNumb"><option selected=selected>Select Customer Here</option>';
		if ($result=mysql_query($sql)) {// check if query has contents
			while ($row=mysql_fetch_array($result)) {// start fetching arrays 
				$html .= '<option value="'.$row['cNumber'].'">'.$row['cName'].'</option>';
			}// done fetching arrays
		}//done checking if query has contents
		$html .= '</select>';
		echo $html;
	}

?>